"""
======================
Author: 柠檬班-小简
Time: 2022/10/31 19:14
Project: day9_framwork_V5
Company: 湖南零檬信息技术有限公司
======================
"""
import os
import unittest
from loguru import logger

from unittestreport import ddt, list_data
from tools.my_excel import MyExcel
from tools.my_path import testdatas_dir
from tools.my_requests import MyRequests
from tools.global_data import Data
from tools.handle_extract import extract_value_from_resp_and_set_globaldata
# 上传用例
me = MyExcel(os.path.join(testdatas_dir, "接口测试用例.xlsx"), 'add_prod')
cases = me.read_all_data()

for item in cases:
    if item['req_data'] and item['req_data'].find("\n"):
        item['req_data'] = item['req_data'].replace("\n", "")
    print(item)